package threads;

public class T09Object
{
  public synchronized void m1()
  {
    for (int i = 0; i < 10; i++)
    {
      System.out.print("methode1-");
      try
      {
        Thread.sleep(1000);
      }
      catch (InterruptedException e)
      {
      }
    }
  }

  public synchronized void m2()
  {
    for (int i = 0; i < 10; i++)
    {
      System.out.print("methode2-");
      try
      {
        Thread.sleep(1000);
        
      }
      catch (InterruptedException e)
      {
      }
    }
  }

  public void m3()
  {
    for (int i = 0; i < 10; i++)
    {
      System.out.print("methode3-");
      try
      {
        
        Thread.sleep(100);
      }
      catch (InterruptedException e)
      {
      }
    }
  }
}
